{% extends "cms_bootstrap.html" %}
{% load static %}

{% block headblock %}
<script src='{% static "js/cms_base.js" %}'></script>
<script src="{% static 'js/myajax.js' %}"></script>
<link rel="stylesheet" href="{% static 'css/cms_base.css' %}">
{% block baseheadblock %}
{% endblock baseheadblock %}
{% endblock headblock %}

{% block bodyblock %}
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
	<div class="container-fluid">
		<div class="nabbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
		    	<span class="sr-only">Toggle navigation</span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		    </button>
	      	<a class="navbar-brand" href="{% url 'cms_index' %}">我的博客</a>
		</div>
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav menu-ul">
				<li class="active"><a href="{% url 'cms_index' %}">博客管理</a></li>
				<li><a href="{% url 'cms_add_article' %}">写博客</a></li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle='dropdown'>{{user.username}}<span class="caret"></span></a>
					<ul class="dropdown-menu" role='menu'>
						<li>
							<a href="{% url 'cms_settings' %}">个人设置</a>
						</li>
						<li>
							<a href="{% url 'cms_logout' %}">注销</a>
						</li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
</nav>
<div class="page-box">
{% block pageboxblock %}
{% endblock pageboxblock %}
</div>
{% block inlinebodyblock %}
{% endblock inlinebodyblock %}
{% endblock bodyblock %}